package com.product.app.bean;


import com.baomidou.mybatisplus.annotation.TableField;
import com.tamll.bean.ProductImage;
import com.tamll.bean.ProductOrderItem;
import com.tamll.bean.Review;
import lombok.Data;
import org.springframework.beans.PropertyValue;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
@Data

public class Product {
  private Integer productId/*产品ID*/;
  private String productName/*产品名称*/;
  private String productTitle/*产品标题*/;
  private Double productPrice/*产品原价格*/;
  private Double productSalePrice/*产品促销价格*/;
  private Date productCreateDate/*产品创建日期*/;
  private Integer productCategoryId/*产品对应类型*/;
  @TableField("product_isEnabled")
  private Integer productIsEnabled/*产品状态*/;
  private Integer productSaleCount/*销量数*/;
  private Integer productReviewCount/*评价数*/;
  @TableField(exist = false)
  private List<PropertyValue> propertyValueList/*产品属性值集合*/;
  @TableField(exist = false)
  private List<ProductImage> singleProductImageList/*产品预览图片集合*/;
  @TableField(exist = false)
  private List<ProductImage> detailProductImageList/*产品详细图片集合*/;
  @TableField(exist = false)
  private List<Review> reviewList/*产品评论集合*/;
  @TableField(exist = false)
  private List<ProductOrderItem> productOrderItemList/*产品订单项集合*/;
}
